$OpenBSD: patch-kio_misc_kpac_kpac_dhcp_helper_c,v 1.1 2013/12/08 19:13:32 zhuk Exp $
More correct implementation of random() & Co., using arc4random().
--- kio/misc/kpac/kpac_dhcp_helper.c.orig	Wed Oct 16 16:59:41 2013
+++ kio/misc/kpac/kpac_dhcp_helper.c	Wed Oct 16 17:01:00 2013
@@ -136,8 +136,12 @@ static struct response send_request_for(int sock, cons
 
     memset(&request, 0, sizeof(request));
     request.op = DHCP_BOOTREQUEST;
+#if HAVE_ARC4RANDOM
+    request.xid = arc4random();
+#else
     srand(time(NULL));
     request.xid = rand();
+#endif
     request.ciaddr = (uint32_t)inaddr.s_addr;
 
     *offs++ = DHCP_MAGIC1;
